package com.gegao.decorator.entity;

/**
 * Created by zhangzhanzhong on 2015/12/28.
 */
public class Finery extends Person {

    protected Person component;

    public void decorate(Person component){
        this.component = component;
    }

    @Override
    public void show() {
        if(component != null){
            this.component.show();
        }
    }
}
